<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:fn="http://java.sun.com/jsp/jstl/functions"
                template="/templates/ui.xhtml">

    <ui:define name="head">
    </ui:define>

    <ui:define name="content">
        <div class="entry" id="top">
            <p:growl id="msgs" showDetail="false"/>
            <h:form id="form">
                <div style="margin-top: 20px;">
                    <p:panel header="选择报表日期">
                        <h:panelGrid columns="2" cellspacing="30">

                            <h:outputLabel value="报表日期:" style="font-weight: bold;" for="startdate"/>
                            <p:inputText id="startdate" required="true" requiredMessage="日期不能为空。"
                                         value="#{loanbalAction.startdate}"
                                         onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
                        </h:panelGrid>
                        <p:separator/>
                        <h:panelGrid columns="1" columnClasses="exportbutton">
                            <h:panelGroup>
                            <p:commandButton value="导出贷款余额文件" image="ui-icon-disk" ajax="false"
                                             action="#{loanbalAction.onExportTxt}"/>
                            <p:commandButton value="导出贷款发生额文件" image="ui-icon-disk" ajax="false"
                                             action="#{loanbalAction.onExportCmsTxndetlTxt}"/>
                            <p:commandButton value="导出存款余额文件" image="ui-icon-disk" ajax="false"
                                             action="#{loanbalAction.onExportTxt_sbsbal}"/>
                            <p:commandButton value="导出存款发生额文件" image="ui-icon-disk" ajax="false"
                                             action="#{loanbalAction.onExportTxt_sbsdetl}"/>
                            </h:panelGroup>
                        </h:panelGrid>

                    </p:panel>
                    <br/>
                    <p:menubar>
                        <p:menuitem type="push" value="导入信贷系统发生额数据" icon="ui-icon ui-icon-document"
                                    action="#{loanbalAction.onImportCmsTxndetlData}" update="msgs, pdt" />
                        <p:menuitem type="push" value="导入信贷系统余额数据" icon="ui-icon ui-icon-disk"
                                    action="#{loanbalAction.onExtractLoanbalData}" update="msgs, pdt"/>
                        <p:menuitem type="push" value="导入SBS系统发生额数据" icon="ui-icon ui-icon-document"
                                    action="#{loanbalAction.onExtractSbsTxndetlData}" update="msgs, pdt" />
                        <p:menuitem type="push" value="导入SBS系统余额数据" icon="ui-icon ui-icon-disk"
                                    action="#{loanbalAction.onExtractSbsBalanceData}" update="msgs, pdt"/>
                    </p:menubar>


                    <p:ajaxStatus style="height:20px;text-align:center">
                        <f:facet name="start">
                            <h:graphicImage value="/images/ajaxloadingbar.gif"/>
                        </f:facet>
                        <f:facet name="complete">
                            <h:outputText value=""/>
                        </f:facet>
                    </p:ajaxStatus>

                </div>

            </h:form>
        </div>
    </ui:define>

</ui:composition>